package com.food.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author beixiang
 * @version 1.0
 * @description TODO
 * @date 2023/3/28 11:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comments {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer commentId;

    /**
     * 评论的内容
     */
    private  String commentContent;
    /**
     * 评论的时间
     */
    private String commentTime;

    /**
     * 评分
     */
    private Integer commentStar;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 美食id
     */
    private String foodId;

    /**
     * 用户头像
     */
    @TableField(exist = false)
    private String userAvatar;

    @TableField(exist = false)
    private Foods foods;
}
